package cn.iocoder.yudao.module.erp.controller.admin.payinfo.vo;

import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;
import cn.iocoder.yudao.module.erp.enums.DictTypeConstants;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDate;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;

@Schema(description = "管理后台 - 付款记录信息 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PayInfoRespVO {

    private Long id;

    @Schema(description = "客户", example = "28647")
    private Long customerId;

    @ExcelProperty("客户")
    private String customerName;

    @Schema(description = "对账类型", requiredMode = Schema.RequiredMode.REQUIRED  )
    @ExcelProperty(value = "对账类型",converter = DictConvert.class)
    @DictFormat(DictTypeConstants.LNG_GET_OR_PAY)
    private String type;

    @Schema(description = "付款金额", requiredMode = Schema.RequiredMode.REQUIRED, example = "17098")
    @ExcelProperty("付款金额")
    private BigDecimal payCount;

    @Schema(description = "付款日期")
    @ExcelProperty("付款日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate payDate;

    @Schema(description = "状态"  )
/*    @ExcelProperty("状态")*/
    private Integer status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
/*    @ExcelProperty("创建时间")*/
    @JsonFormat(pattern = "yyyy-MM-dd")
    private LocalDate createTime;

    /**
     * 备注
     */
    @Schema(description = "备注")
    @ExcelProperty("备注")
    private String remark;
    /**
     * 附件 URL
     */
    private String fileUrl;



}